﻿@{
    ViewBag.Title = "系统管理";
    Layout = "~/Views/Shared/_Areas_Layout.cshtml";
}
@using MvcShoppingMall.HtmlHelper
@model PageList<MvcShoppingMall.Model.wst_users>
<link href="~/Content/Bootstrap/css/bootstrap.min.css" rel="stylesheet" />

<div class="wrap" style="background-color:#fcfcf9">
    <div class="page-title">
        <span class="modular fl"><i class="user"></i><em>会员列表</em></span>
    </div>
    <div class="operate">
        <form>
            <select class="inline-select">
                <option>选择会员状态</option>
                <option>停用</option>
                <option>正常</option>
            </select>
            <input type="text" class="textBox length-long" placeholder="输入会员昵称、姓名、手机号码..." />
            <input type="button" value="查询" class="tdBtn" />
        </form>
    </div>
    <table class="list-style Interlaced">
        <tr>
            <th>编号</th>
            <th>登录账号</th>
            <th>邮件地址</th>
            <th>手机号码</th>
            <th>用户状态</th>
            <th>注册日期</th>
            <th>操作</th>
        </tr>
        @foreach (MvcShoppingMall.Model.wst_users item in ViewBag.userCount)
        {

            <tr>
                <td class="center">@item.userId</td>
                <td class="center">@item.loginName</td>
                @if (@item.userEmail!=null)
                {
                    <td class="center">@item.userEmail</td>
                }
                else
                {
                    <td class="center">用户未备注</td>
                }
                
                <td class="center">@item.userPhone</td>
                <td class="center">
                    @if (item.userStatus==1)
                    {
                         <img src="~/Areas/Admin/Content/images/yes.gif" />
                    }
                    else
                    {
                        <img src="~/Areas/Admin/Content/images/no.gif" />
                    }
                   
                </td>
                <td class="center">@item.createTime</td>
                <td class="center">
                    <a class="inline-block" title="停用"><img src="~/Areas/Admin/Content/images/icon_drop.gif" /></a>
                </td>
            </tr>

        }
    </table>
    <!-- BatchOperation -->
    <div style="overflow:hidden;">
        <!-- Operation -->
        <!-- turn page -->
        <div class="turnPage center fr">
            <ul class="pagination">
                @if (Model != null && Model.Count > 0)
                {

                    @Html.Pager(Model);

                }
            </ul>
        </div>
    </div>
</div>